import App from './App.vue'
import router from './router'
import store from './store'

import VueLazyLoad from 'vue-lazyload'


window.AV = require('leancloud-storage')

Vue.prototype.documentTitle = "Yozora's blog"
Vue.config.productionTip = false

// 加载全局组件
import components from './components'
// 注册全局组件
Object.keys(components).forEach(key => {
  Vue.component(key, components[key])
})

// 解决移动端300ms延迟问题
FastClick.attach(document.body)
// 图片懒加载
Vue.use(VueLazyLoad, {
  loading: 'http://cdn.yozora.top/image/loading.gif'
})

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')

